//
//  PlayerPresentaionViewController.h
//  MJAVFoundationDemo
//
//  Created by apple on 16/9/12.
//  Copyright © 2016年 apple. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface PlayerPresentaionViewController : UIViewController

- (IBAction)ClickOnCloseView:(id)sender;//关闭视图
- (IBAction)clickOnChangeLrc:(id)sender;//切换歌词和图片的按钮

@property (weak, nonatomic) IBOutlet UILabel *songNameLbl;//显示歌名
@property (weak, nonatomic) IBOutlet UILabel *singerNameLbl;//显示歌唱者
@property (weak, nonatomic) IBOutlet UITableView *LricTable;//显示歌词的表格
@property (weak, nonatomic) IBOutlet UILabel *totalTimeLbl;//显示总时间的
@property (weak, nonatomic) IBOutlet UISlider *slider;//滑动条，控制播放进度
@property(nonatomic,strong)AVAudioPlayer *audioPlayer;//播放器

- (IBAction)clickOnNext:(id)sender;//点击下一首

- (IBAction)clickOnPlay:(id)sender;//点击播放
- (IBAction)clickOnPrevious:(id)sender;//点击上一首
- (IBAction)sliderMove:(id)sender;//滑动进度条时候控制音乐的事件

@property (weak, nonatomic) IBOutlet UIImageView *bgImage;//显示背景图片
@property (weak, nonatomic) IBOutlet UILabel *currentLbl;//显示当前播放时间

@property(nonatomic,copy)NSString *song;//接收传过来的歌曲名字
@property(nonatomic,copy)NSMutableArray *lricArray;//保存歌词数据
@property(nonatomic,copy)NSMutableArray *timeArray;//保存时间数据

@property(nonatomic,strong)NSMutableArray *allSongsDataArray;//所有歌曲的歌曲库
//保存当前播放歌曲在音乐库的索引位置
@property(nonatomic,assign)NSInteger songIndex;

//单例
+ (instancetype)SharedPlayer;
@end
